package ar.edu.frba.utn.dds.Vuelo;

import java.util.ArrayList;
import java.util.List;

import ar.edu.frba.utn.dds.Compania.Compania;
import ar.edu.frba.utn.dds.Companias.AerolineaLanchita;

public class Companias {
	List<Compania> companias = new ArrayList<Compania>();
	
	public Companias(){
	}

	public List<Compania> getCompanias() {
		return companias;
	}

	public void setCompanias(List<Compania> companias) {
		this.companias = companias;
	}
	
	/**
	 * Metodo que se encarga de agregar una compania
	 * @param companiaAerea
	 */
	public void agregarCompanias(Compania companiaAerea){
		this.companias.add(companiaAerea);
	}
	
	public void agregarTodasLasCompanias(){
		this.agregarCompanias(new AerolineaLanchita());
	}
}
